package net.butfly.bus.client;

import java.io.Serializable;

import net.butfly.bus.TX;
import net.butfly.bus.context.Constants.InternalTX;

public class TXRequest implements Serializable {
	private static final long serialVersionUID = 6850073691828769556L;
	private String tx;
	private String ver;

	public TXRequest(String tx, String version) {
		super();
		this.tx = tx;
		this.ver = version;
	}

	public TXRequest(String tx) {
		this(tx, TX.INIT_VERSION);
	}

	public TXRequest(InternalTX tx) {
		this(tx.getTx());
	}

	public TXRequest(InternalTX tx, String version) {
		this(tx.getTx(), version);
	}

	public String getTx() {
		return tx;
	}

	public String getVersion() {
		return ver;
	}
}
